<?php

use Faker\Generator as Faker;

$factory->define(\App\Models\Company::class, function (Faker $faker) {
    $userIds = \App\Models\User::pluck('id');
    return [
        'name'         => $faker->word,
        'roaster'      => $faker->randomElement([0, 1]),
        'subscription' => $faker->boolean,
        'website'      => $faker->url,
        'logo'         => $faker->imageUrl(),
        'description'  => $faker->sentence,
        'added_by'     => $faker->randomElement($userIds)
    ];
});
